package cn.adkii.base.demo.syntax;

/**
 * @author malingdi
 * @description
 * @date 2023/11/25 12:05
 */
public class DefaultStudent extends AbstractStudent implements Student{

    private String uId;

    private String name;

    public DefaultStudent(String uId, String name) {
        this.uId = uId;
        this.name = name;
        System.out.println("两个参数的构造");
    }

    public DefaultStudent(String uId) {
        this(uId, "小红");
        System.out.println("第一个去调的");
    }

    @Override
    public void introduce() {
        sayHi();
        show();
    }

    @Override
    public void report(String stuId) {
        System.out.println(stuId + "报道了");
    }

    @Override
    public void entry(String stuId) {
        System.out.println(stuId + "入学了");
    }

    @Override
    public void classes(String uId) {
        System.out.println(uId + "分班了");
    }
}
